﻿<%@ Page Language="C#" MasterPageFile="MyStudy.master" AutoEventWireup="true" CodeFile="SearchCourse.aspx.cs" Inherits="Theme_3_SearchCourse" Title="Untitled Page" %>



<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="UserControls/left.ascx" TagName="left" TagPrefix="left" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td style="height: 12px;">
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp;<%=config.GetLanagerValueByKey("theme_Study_Position", PowerCreator.LMS.Language.LanagetItemType.Page)%>>><%=config.GetLanagerValueByKey("btn_Search", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </td>
        </tr>
        <tr>
            <td height="15" class="p20">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mainList1">
                    <tr>
                        <th>
                            <%=config.GetLanagerValueByKey("lbl_CourseName", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                        </th>
                        <td>
                            <asp:TextBox ID="txt_CourseName" runat="server" Width="120px"></asp:TextBox>
                        </td>
                        <th>
                            <%=config.GetLanagerValueByKey("theme_Evaluation_Resource", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                        </th>
                        <td>
                            <asp:TextBox ID="txt_ResourceName" runat="server" Width="120px"></asp:TextBox>
                        </td>
                        <%--<th>
                            <%=config.GetLanagerValueByKey("theme_Course_Specialty", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_Catalog" runat="server" Width="120px">
                            </asp:DropDownList>
                        </td>--%>
                        <th>
                        </th>
                        <td>
                            <asp:Button ID="btn_Search" runat="server" Text="" CssClass="inputBotton2" OnClick="btn_Search_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="titbg_m_22" colspan="8" style="height: 12px;" valign="top">
                        </td>
                    </tr>
                    <%--                                <tr>
                                    <th>
                                        专业名称</th>
                                    <td>
                                        <asp:DropDownList ID="ddl_Catalog" runat="server">
                                        </asp:DropDownList></td>
                                    <th>
                                        </th>
                                    <td>
                                        <asp:Button ID="btn_Search" runat="server" Text="搜 索" OnClick="btn_Search_Click" /></td>
                                </tr>
--%>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <ul>
                    <asp:Repeater ID="rpt_CourseList" runat="server" OnItemCommand="rpt_CourseList_ItemCommand">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size: 16px;">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <li style="background: url(images/xx.gif) repeat-x bottom left; padding-top: 5px">
                                        <asp:LinkButton ID="lnkbtn_CourseName" CommandName="lshow" CommandArgument='<%#Eval("Course_Id")%>'
                                            runat="server">[<%#Eval("CourseMostlyTeacherName")%>]
                                            &nbsp;<%#Eval("CourseName")%> &nbsp;
                                        </asp:LinkButton>
                                        [<%#DateTime.Parse(Eval("CourseCreatetime").ToString()).ToString("yyyy-MM-dd")%>]
                                    </li>
                                </td>
                            </tr>
                            <asp:Panel ID="pl_ResourceList" runat="server" Visible="False" Width="95%">
                                <tr>
                                    <td align="center">
                                        <asp:Repeater ID="rpt_ResourceList" runat="server" OnItemCommand="rpt_ResourceList_ItemCommand">
                                            <HeaderTemplate>
                                                <table width="96%" border="0" cellspacing="0" cellpadding="0" class="mainList" style="font-size: 12px;">
                                                    <tr>
                                                        <th>
                                                            <%--资源名称--%>
                                                            <%=config.GetLanagerValueByKey("lbl_ResourceList_ResourceName", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                                        </th>
                                                        <th>
                                                            <%=config.GetLanagerValueByKey("lbl_AddResourceInfo_AuthorName", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                                        </th>
                                                        <%--   <th>
                                                                    资源类型
                                                                </th>
                                                                <th>
                                                                    资源时长
                                                                </th>
                                                                <th>
                                                                    创建时间
                                                                </th>--%>
                                                        <th>
                                                            <%--资源文件类别--%>
                                                            <%=config.GetLanagerValueByKey("lbl_ResourceList_CoursersClass", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                                        </th>
                                                        <%--<th>
                                                            操作
                                                            <%=config.GetLanagerValueByKey("btn_ManagerQuestion_Work", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                                        </th>--%>
                                                    </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <%--<td>
                                                                <a  href='<%#Eval("OpenUrl1")%>' target="_blank" title='<%#Eval("ResourceName")%>'><%#Eval("ResourceName")%>&nbsp;</a>
                                                                &nbsp;</td>--%>
                                                    <td>
                                                        <%#Eval("ResourceName")%>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <%#Eval("CoursersResourceAuthor")%>
                                                        &nbsp;
                                                    </td>
                                                    <%-- <td>
                                                                <%#Eval("ResourceSysType1")%>
                                                                &nbsp;</td>
                                                            <td>
                                                                <%#Eval("ResourceVideoTime")%>
                                                                &nbsp;</td>
                                                            <td>
                                                                <%#DateTime.Parse(Eval("ResourceCreatedTime").ToString()).ToString("yyyy/MM/dd")%>
                                                                &nbsp;</td>
                                                                --%>
                                                    <td>
                                                        <%#Eval("CoursersClassName")%>
                                                        &nbsp;
                                                    </td>
                                                    <%--<td>
                                                        <asp:LinkButton ID="download" runat="server" CommandName="download" CommandArgument='<%#Eval("CourseresID")%>'><%=config.GetLanagerValueByKey("theme_Course_Study", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                                                        <asp:Label ID="lbl_resourcetype_paper" runat="server" Text="" ForeColor="red"></asp:Label>
                                                        &nbsp;
                                                    </td>--%>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </asp:Panel>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </ul>
                <asp:Label ID="lab_err" runat="server" ForeColor="Red" Text="" Visible=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="right" OnPageChanged="AspNetPager1_PageChanged"
                    ShowCustomInfoSection="Right" Width="100%" meta:resourcekey="AspNetPager1" Style="font-size: 12px"
                    InputBoxStyle="width:19px" CustomInfoHTML="当前第  <font color='red'><b>%CurrentPageIndex%</b></font> /  %PageCount% 页 当前条数 %StartRecordIndex%-%EndRecordIndex%"
                    FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
</asp:Content>
